package com.ruoyi.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.finance.domain.WalmartProfitReport;
import com.ruoyi.finance.domain.WalmartProfitReportDetail;
import com.ruoyi.walmart.domain.shipments.dto.WalmartProfitReportDetailUpdate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface WalmartProfitReportDetailMapper extends BaseMapper<WalmartProfitReportDetail> {
    /**
     * 批量插入
     */
    int insertBatchReportDetail(@Param("list")List<WalmartProfitReportDetail> details);
    /**
     * 查询报表明细
     */
    List<WalmartProfitReportDetail> selectBatchProfitReportByIds(@Param("ids")List<Long> reportIds);

    /**
     * 查询报表明细
     */
    List<WalmartProfitReportDetail> selectBatchProfitReportById(@Param("wprId")Long wprId);

    void batchUpdateProductCostAndFreight(List<WalmartProfitReportDetailUpdate> updateList);
}

